// 主容器
.warp {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: var(--theme-bg-primary);
  color: var(--theme-text-secondary);
  font-family: 'PingFang SC', 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', 'Arial', sans-serif;
}

// 主内容区域
.main {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
  background-color: var(--theme-bg-primary);
}

// 用户信息头部
.userHeader {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.avatarContainer {
  width: 80px;
  height: 80px;
  background-color: var(--theme-border-primary);
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
}

.avatar {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.defaultAvatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
  }
}

.defaultAvatarIcon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
  z-index: 1;
  position: relative;
}

.userInfo {
  flex-grow: 1;
}

.userName {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--theme-text-primary);
}

.userId {
  font-size: 16px;
  color: var(--theme-text-muted);
  margin: 0;
}

.editProfile {
  display: flex;
  align-items: center;
  color: var(--theme-text-muted);
  text-decoration: none;
  cursor: pointer;
}

.editText {
  margin-right: 4px;
  font-size: 16px;
}

.chevronIcon {
  font-family: 'Material Icons', serif;
  font-size: 24px;
}

// 统计卡片
.statsCard {
  background-color: var(--theme-bg-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.statsItem {
  text-align: center;
  flex: 1;
}

.statsValue {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  color: var(--theme-text-primary);
}

.memberLevel {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: var(--theme-text-primary);
  
  &.memberLevelActive {
    color: var(--theme-accent-warning);
    text-shadow: 0 2px 4px rgba(224, 180, 0, 0.3);
  }
}

.statsLabel {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin: 0;
  margin-top: 4px;
}

.memberLabel {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin: 0;
  margin-top: 4px;
}

.memberExpireTime {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  &.memberLevelActive {
    color: var(--theme-accent-warning);
    text-shadow: 0 2px 4px rgba(224, 180, 0, 0.3);
  }
}

.statsDivider {
  width: 1px;
  height: 40px;
  background-color: var(--theme-border-secondary);
  margin: 0 16px;
}

// 菜单组
.menuGroup {
  background-color: var(--theme-bg-card);
  border-radius: 12px;
  margin-bottom: 24px;
}

.menuItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--theme-border-secondary);
  text-decoration: none;
  color: var(--theme-text-primary);
  cursor: pointer;
  
  &:last-child {
    border-bottom: none;
  }
}

.menuLeft {
  display: flex;
  align-items: center;
}

.menuIcon {
  font-family: 'Material Icons', serif;
  font-size: 24px;
  color: var(--theme-primary);
  margin-right: 12px;
}

.menuText {
  font-size: 16px;
  color: var(--theme-text-primary);
}

// 退出登录区域
.logoutSection {
  margin-top: 32px;
  margin-bottom: 80px;
}

.logoutButton {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--theme-bg-card);
  color: var(--theme-primary);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  box-sizing: border-box;
}


// 模态框内容样式（保持原有样式）
.vipContent {
  ul {
    padding-left: 10px;

    li {
      margin: 10px;
      font-weight: 500;
      font-size: 12px;
      color: var(--theme-text-dark);
    }
  }
  
  .benefitItem {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--theme-text-muted);
    
    svg {
      flex-shrink: 0;
    }
    
    &:last-child {
      margin-bottom: 0;
    }

    .checkIcon {
      font-size: 16px;
      margin-right: 8px;
      color: var(--theme-success);
    }

    span {
      font-size: 16px;

      .highlight {
        color: var(--theme-error);
        font-weight: bold;
        margin: 0 2px;
      }
    }
  }
}

.inviteContent {
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;

  .inviteContentTitle {
    font-weight: 600;
    font-size: 20px;
    color: var(--theme-text-dark);
  }

  .inviteContentImg {
    width: 183px;
    height: 183px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 135px;
      height: 135px;
    }
  }

  .inviteContentDesc {
    font-size: 14px;
    color: var(--theme-text-muted);
    margin-top: 20px;
  }

  .inviteContentBtn {
    width: 45px;
    height: 45px;
    margin-top: 10px;
    margin-bottom: 5px;
  }
}

// 版本信息
.version {
  text-align: center;
  font-size: 12px;
  color: var(--theme-text-muted);
  margin: 20px 0;
}

// 会员等级弹窗样式
.memberModalContent {
  background: linear-gradient(135deg, var(--theme-bg-card) 0%, var(--theme-bg-secondary) 100%);
  color: var(--theme-text-primary);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.memberModalHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--theme-bg-primary) 0%, var(--theme-bg-secondary) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--theme-border-secondary);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.memberModalTitle {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--theme-accent-warning);
  flex: 1;
  margin-right: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.memberModalClose {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--theme-text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);

  &:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  &:active {
    transform: scale(0.95);
  }
}

.memberInfoSection {
  padding: 20px;
  padding-bottom: 0;
}

.memberInfoCard {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.memberInfoTitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-accent-warning);
  margin: 0 0 6px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modalMemberExpireTime {
  font-size: 14px;
  color: var(--theme-text-muted);
  margin: 0;
  font-weight: 500;
}


.memberBenefitsSection {
  padding: 0 20px 24px 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 0;
  margin: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.sectionTitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-accent-warning);
  margin: 0 0 16px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-left: 12px;

  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, var(--theme-accent-warning) 0%, var(--theme-accent-warning) 100%);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(224, 180, 0, 0.3);
  }
}

.benefitsList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.benefitItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.benefitIcon {
  font-size: 20px;
  color: var(--theme-accent-warning);
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  margin-top: 1px;
  text-shadow: 0 2px 4px rgba(224, 180, 0, 0.3);
  filter: drop-shadow(0 0 6px rgba(224, 180, 0, 0.2));
}

.benefitText {
  font-size: 15px;
  color: var(--theme-text-primary);
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2px;
}


.memberModalActions {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.actionButton {
  flex: 1;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;

  &:hover {
    background: var(--theme-bg-card);
    transform: translateY(-2px);
  }

  &:active {
    transform: translateY(0);
  }
}

.renewButton {
  flex: 1;
  background: linear-gradient(135deg, var(--theme-accent-warning) 0%, var(--theme-accent-warning) 100%);
  color: var(--theme-bg-primary);
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
  }

  &:active {
    transform: translateY(0);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .memberModalContent {
    max-width: 95vw;
    border-radius: 16px;
  }

  .memberModalHeader {
    padding: 16px 20px;
  }

  .memberModalTitle {
    font-size: 18px;
  }

  .memberInfoSection,
  .memberBenefitsSection,
  .availableModelsSection {
    padding-left: 20px;
    padding-right: 20px;
  }

  .memberModalActions {
    padding: 20px;
    flex-direction: column;
  }

  .actionButton,
  .renewButton {
    padding: 14px 20px;
    font-size: 15px;
  }
}
// 只针对会员权益弹窗的样式
:global {
  .adm-modal-body{
    padding: 0 !important;
  }
  .adm-modal-content{
    padding: 0 !important;
  }
  .adm-modal-footer{
    display: none !important;
  }
  
  // 只对会员权益弹窗应用透明背景
  .member-modal .adm-center-popup-body{
    //--background-color: transparent !important;
  }
}